package com.js.admin;

import com.js.auth.client.EnableJsAuthClient;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author： ygl
 * @date： 2018/10/29
 * @Description：
 */
@EnableJsAuthClient
@ComponentScan({"com.js.core","com.js.admin"})
@MapperScan(basePackages = "com.js.admin.mapper")
@EnableFeignClients({"com.js.auth.client.feign"})
@EnableEurekaClient
@SpringBootApplication
@EnableSwagger2Doc
public class JsAdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(JsAdminApplication.class, args);
    }
}
